﻿using GalaSoft.MvvmLight;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VisionAppManager.Model
{
    public class ModelBase : ObservableObject
    {
        private bool _connected = false;
        public bool Connected
        {
            get
            {
                return _connected;
            }
            set
            {
                Set<bool>(ref _connected, value);
                Color = _connected ? "Lime" : "Gray";
            }
        }

        private string _color = "Gray";
        public string Color
        {
            get
            {
                return _color;
            }
            set
            {
                Set<string>(ref _color, value);
            }
        }
    }
}
